package com.dsj.gxrd.modules.controller.activity;

import com.dsj.gxrd.modules.activity.domain.entity.RdPlanManagement;
import com.dsj.gxrd.modules.activity.domain.query.RdPlanManagementQuery;
import com.dsj.gxrd.modules.activity.service.RdPlanManagementService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * ok
 * @author songpin566
 * @date 2023/10/09
 **/
@Api(tags = "计划安排")
@RestController
@RequestMapping("/plan/management")
public class RdPlanManagementController extends BaseController {

    @Autowired
    private RdPlanManagementService rdPlanManagementService;

    @GetMapping("/list")
    public TableDataInfo list(RdPlanManagementQuery query) {
        startPage();
        List<RdPlanManagement> list = rdPlanManagementService.selectPlanManagementList(query);
        return getDataTable(list);
    }

}
